<?php

namespace App\Models;

use App\Helpers\Api\MyCacheTrait;

class Category extends Base
{
//    use MyCacheTrait;

    public $timestamps = false;

    public $table = 'category';

    public function child() {
        return $this->hasMany(Category::class, 'parent_id');
    }

    public function product() {
        return $this->hasMany(Product::class, 'category_id');
    }
}
